package chen.jia.xin.finalproject.MainView;

import android.text.SpannableString;

public class Msg {
    public static final int TYPE_RECEIVED = 0;
    public static final int TYPE_SEND = 1;
    //因为消息可能包含图片等信息,所以要设置为SpannableString
    private SpannableString content;
    private int type;

    public Msg(SpannableString content, int type) {
        this.content = content;
        this.type = type;
    }

    public SpannableString getContent() {
        return content;
    }

    public int getType() {
        return type;
    }
}
